package net.zjitc.bookshop15.mapper;

import net.zjitc.bookshop15.pojo.book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 董熠涛
 * @date 2025/4/28 13:27
 */
@Mapper
public interface bookMapper {

    @Select("SELECT * FROM book ")
    public List<book> selectAllBooks();

    @Select("SELECT * FROM book WHERE id = #{id}")
    public book selectBookOne(Integer id);
}
